import request from '@/utils/request'
import { praseStrEmpty } from "@/utils/admin";

// 查询通知列表
export function listInfo(query) {
  return request({
    url: '/user/public/info/page',
    method: 'post',
    data: query
  })
}

export function findDict() {
  return request({
    url: '/user/public/info/findInfoType',
    method: 'get'
  })
}



// 新增通知
export function addInfo(data) {
  return request({
    url: '/user/public/info/add',
    method: 'post',
    data: data
  })
}

// 修改通知
export function modifyInfo(data) {
  return request({
    url: '/user/public/info/modify',
    method: 'post',
    data: data
  })
}


// 删除通知
export function removeInfo(id) {
  return request({
    url: '/user/public/info/delete?id='+id,
    method: 'get',
  })
}
